let mongoose = require('./db.js')
const UserSchema = mongoose.Schema({
    name: String,
    role: String,
    desc: String,
    tags: Array,
    email: String,
    password: String,
    key: String,
    desc: String,
})
const User = mongoose.model('user', UserSchema, 'user')
const PathSchema = mongoose.Schema({
    name: String,
    path: String,
    role: String,
})
const Path = mongoose.model('path', PathSchema, 'path')
const ListSchema = mongoose.Schema({
    img:String,
    name: String,
    content: String,
})
const List = mongoose.model('list', ListSchema, 'list')
const Wzh=new mongoose.Schema({
    name:String
})
const Wzhs = mongoose.model('wzh', Wzh, 'wzh')
module.exports = { User, List, Path, Wzhs }
